import { get, post, getDynamicynamic } from './api'

//接口名 接口地址

//获取服务器时间


//获取建筑物详情
export const building = data => get('/api/narcissus/building', data)

//获取校园新闻
export const schoolNews = data => get('/api/office/press-announcement/by-announcement', data)

//获取入学年份
export const totalByAcademicYear = data => get('/api/campus/statistics/total-by-academic-year', data)

//在校人员统计
export const personnel = data => get('/api/campus/statistics/personnel-statistics', data)

//建筑物统计
export const buildingType = data => get('/api/narcissus/statistics/building-statistics', data)

//选课统计
export const elective = data => get('/api/plum-blossom/statistics/elective-statistics', data)

//设备类型数据统计
export const device = data => get('/api/narcissus/statistics/device-statistics', data)

//建筑设备数量统计
export const buildingDevice = data => get('/api/narcissus/statistics/building-device-statistics', data)

//设备巡检次数统计
export const patrol = data => get('/api/narcissus/statistics/patrol-statistics', data)

//故障上报次数统计
export const malfunctions = data => get('/api/narcissus/statistics/malfunctions-statistics', data)

//建筑物摄像头统计
export const getBuilds = data => get('/api/narcissus/statistics/camera-statistics', data)

//获取摄像头rtsp
export const getCameraUrl = data => get('/api/narcissus/sysnc-data/'+data+'/camera-stream')

//rtsp2m3U8
export const rtsp2m3U8 = data => post('http://192.168.81.4:15006/stream/start',data)
